<?php
if(sizeof($arrNode > 0))
{
    foreach($arrNode as $index => $node)
    {
?>
        <li <?php echo ($index == sizeof($arrNode)-1)?'class="last"':''; ?>>
            <a href="<?php echo site_url().'/'.$link.'/view/id/'.$node['node_id']; ?>">
                <?php echo $node['title']; ?>
            </a>
        </li>
<?php
    }
}
?>
